#include<iostream>
#include<memory>
#include<string>
#include "server_tcp.hpp"
#include "log.hpp"
#include "daemon.hpp"

std::string Echo(const std::string& str)
{
    return str;
}

int main()
{
    daemonRun();
    std::unique_ptr<ServerTCP> server(new ServerTCP(Echo));
    server->Init();
    server->Start();
    return 0;
}